package com.dyw.spzx.model.entity.product;

import com.dyw.spzx.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "商品sku")
@Data
public class ProductSku extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Schema(description = "商品编号")
    private String skuCode;
    @Schema(description = "sku名称")
    private String skuName;
    @Schema(description = "商品ID")
    private Integer productId;
    @Schema(description = "缩略图路径")
    private String thumbImg;
    @Schema(description = "售价")
    private BigDecimal salePrice;
    @Schema(description = "市场价")
    private BigDecimal marketPrice;
    @Schema(description = "成本价")
    private BigDecimal costPrice;
    @Schema(description = "库存数")
    private Integer stockNum;
    @Schema(description = "销量")
    private Integer saleNum;
    @Schema(description = "sku规格信息")
    private String skuSpec;
    @Schema(description = "重量")
    private String weight;
    @Schema(description = "体积")
    private String volume;
    @Schema(description = "线上状态 0-初始值, 1-上架, -1-自主下架")
    private Integer status;


}
